<?php


namespace App\backend\services;


use App\backend\models\GoodSettingModel;

class GoodSettingServices
{

    /**
     * 获取 - 商品回收站列表
     *
     * @param $data //请求参数数组
     * @return array
     */
    public static function getInfo($data)
    {
        return GoodSettingModel::info($data);
    }

    /**
     * 添加/编辑 - 商品规格
     *
     * @param $data //请求参数数组
     * @return array
     */
    public static function goodSetting($data)
    {
        if (empty($data) && $data == false) {
            return [];
        }

        $list = GoodSettingModel::updatedData(['id' => 1], $data);
        return $list;
    }

}
